import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// entry
import './../public-path'
// 引入ElementUI
import 'element-ui/lib/theme-chalk/index.css'
import elementui from 'element-ui';

Vue.use(elementui)
Vue.config.productionTip = false
// main.js
const app = new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')


// 监听卸载操作
window.addEventListener('unmount', function () {
    app.$destroy()
})

